小编Riz*_*hya的帖子

使用phpExcel在单元格中的文本上的超链接

$objPHPExcel->setActiveSheetIndex($i)->getCell('A' . $j)
->getHyperlink('mytext')
->setUrl('http://abc.com');
Run Code Online (Sandbox Code Playgroud)

我试图在单元格中链接文本的特定部分,但它链接到整个单元格,有任何解决方案吗?或者,如果我使用多个单元格,是否有任何方法可以在工作表中应用特定行的宽度?例如

ROW1 CELL1 CELL2 CELL3 CELL4
ROW2 ---- CELL1 ---- CELL2 ----
ROW3 ---- CELL1 ---- CELL2 ----
ROW4 ---- CELL1 ---- CELL2 ----

phpexcel

10
推荐指数
1
解决办法
6856
查看次数

firebase 托管 iframe 与 X-Frame-Options 错误

我需要对 Firebase 托管的页面使用几个 iframe,但它给了我 X-Frame-Options 错误,其中一个 iframe 用于 picasa 上托管的画廊,另一个 iframe 用于联系表单(因为我无法通过 firebase 发送电子邮件) :()

这是错误

Refused to display 'https://get.google.com/albumarchive/pwa/11111/album/1111?source=pwa#slideshow/1111' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.
jquery.min.js:2 Uncaught DOMException: Failed to read the 'contentDocument' property from 'HTMLIFrameElement': Blocked a frame with origin "https://demodomain.com" from accessing a cross-origin frame. 
Run Code Online (Sandbox Code Playgroud)

我用 firebase.json 做到了这一点,但没有成功

 "headers": [
     {
       "source": "**/*",
       "headers": [
         {"key": "X-Content-Type-Options", "value": "nosniff"},
         {"key": "X-Frame-Options", "value": "ALLOW"},
         {"key": "X-UA-Compatible", "value": "ie=edge"},
         {"key": "X-XSS-Protection", "value": "1; mode=block"}
       ]
     } …
Run Code Online (Sandbox Code Playgroud)

routes cors firebase firebase-hosting

4
推荐指数
1
解决办法
5638
查看次数

标签 统计

cors ×1

firebase ×1

firebase-hosting ×1

phpexcel ×1

routes ×1