필자는 "필승을위한 페이스 북의 우리처럼."라고 제 본문을 말하고 싶습니다. 나는 "Facebook"이라는 단어가 링크되어 있지만 밑줄이 그어지기를 원하지 않습니다. 나는 또한 텍스트와 링크가 한 줄에 있도록하고 싶다. Here is what the output looks like now텍스트를 수정하여 한 줄에 표시하려면 어떻게합니까?
여기 내 코드입니다.
function popupWin() {
text = "<html>\n<head>\n<title>Pop Window</title>\n<body>\n";
text += "<center>\n<br>";
text += "<h4>Like us on </h4>" + "<a href='myLink' target='_blank'><h4>Facebook</h4></a>" + " <h4>and win a prize</h4>";
text += "</center>\n</body>\n</html>\n";
setTimeout('windowProp(text)', 1000);
}
function windowProp(text) {
newWindow = window.open('','newWin','width=300,height=200');
newWindow.document.write(text);
}
각 '
'은 (는) 블록입니다. 당신은 세 가지 필요하지 않습니다, 당신은 아마 하나의 콘텐츠 안에 있습니다. – vlaz
그리고 밑줄이 없도록하려면''에'text-decoration : none;'을 쓰십시오. – neilsimp1