admin 管理员组

文章数量: 887021

html 标题 不显示,HTML

在Internet Explorer中,图像的title属性未显示。如果适用于Firefox和Chrome。我看过其他帖子但是无法理解它,我正在谈论这个:

PDW Status:

Green -

src="__URL__" style="margin: 5px;"/>     

Red -

src="__URL__" style="margin: 5px;"/>     

Yellow -

src="__URL__" style="margin: 5px;"/>     

White  -

src="__URL__" style="margin: 5px;"/> 

a:link { text-decoration: none;

color: #0072c6 } a:visited { text-decoration: none; color: #0072c6 } a:hover { text-decoration: underline; } a:active { text-decoration: underline; }

//Grab data from list and post into HTML Fields

$(function() {

green = "";

yellow = "";

red = "";

white = "";

$.ajax({

url: "__URL__",

headers: {"Accept": "application/json;odata=verbose"},

type: "GET",

cache: false,

async: false,

}).success(function (data) {

$.each(data.d.results, function(key, value) {

console.log(value.Title);

switch (value.Title) {

case "GREEN":

green += value.Description;

console.log("GREEN TEST" + green);

var gDescription = document.querySelector('#Green');

gDescription.title = "" + green;

break;

case "YELLOW":

yellow += value.Description;

console.log("YELLOW TEST" + yellow);

var yDescription = document.querySelector('#Yellow');

yDescription.title = "" + yellow;

break;

case "RED":

red += value.Description;

console.log("RED TEST" + red);

var rDescription = document.querySelector('#Red');

rDescription.title = "" + red;

break;

default:

white += value.Description;

console.log("WHITE TEST" + white);

var wDescription = document.querySelector('#White');

wDescription.title = "" + white;

}

});

});

});

本文标签: html 标题 不显示 HTML